package cn.itsource;

import com.sun.jdi.PathSearchingVirtualMachine;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;

@SpringBootApplication
@EnableCaching//开启springcatch
//扫描servlet组件
@ServletComponentScan("cn.itsource.system.listener")
@MapperScan("cn.itsource.**.mapper")
public class BlogApp {
    public static void main(String[] args) {
        try {
            SpringApplication.run(BlogApp.class,args);
        } catch (Exception e) {
           e.printStackTrace();
        }
    }

}
